package com.ccit.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Time;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户柜台消费订单")
@TableName("area")
public class Area {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "区域名称")
    @TableField("name")
    private String  name;

    @ApiModelProperty(value = "区域限制人数上限")
    @TableField("limit_num")
    private Integer limitNum;

    @ApiModelProperty(value = "当前人数")
    @TableField("current")
    private Integer current ;

    @TableLogic//逻辑删除注解
    @ApiModelProperty(value = "区域逻辑删除,1 已删除  0 未删除")
    @TableField("deleted")
    @JsonIgnoreProperties
    private Integer deleted;
}
